<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
		<meta name="format-detection" content="telephone=no,email=no,date=no,aItemress=no">
		<title>弹出菜单</title>
		<link rel="stylesheet" type="text/css" href="../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../css/app.css" />
	</head>
	<style>
		body,
		html {
			background-color: #000;
		}
	</style>

	<body>
	</body>
	<script type="text/javascript" src="../script/api.js"></script>
	<script type="text/javascript" src="../script/common.js"></script>
	<script type="text/javascript" src="../script/aui-dialog.js"></script>
	<script>
		apiready = function() {
			var dialog = new auiDialog();
			dialog.alert({
				title: "秒杀提醒",
				msg: '您心仪的商品已经开始抢购了',
				buttons: ['关闭', '前往秒杀专区']
			}, function(ret) {
				if(ret) {
					if(ret.buttonIndex == '2') {
						send_event('goto_miaosha')
						setTimeout(function(){
							close_frame()
						},300)
					}
					if(ret.buttonIndex == '1') {
						send_event('remind_add')
						close_frame()
					}
				}
			})
		};
	</script>

</html>
